package com.sochinchou.res.components;

import com.sochinchou.res.utils.Constants;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class MyService extends Service{

	private static final String TAG = "MyService";
	
	@Override
	public void onCreate() {
		Log.e(TAG, "onBind() >>>>>");
		super.onCreate();
	}
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Log.e(TAG, "onStartCommand() >>>>>");
		return super.onStartCommand(intent, flags, startId);
	}

	@Override
	public void onDestroy() {
		Log.e(TAG, "onBind() >>>>>");
		super.onDestroy();
	}

	@Override
	public IBinder onBind(Intent intent) {
		Log.e(TAG, "onBind() >>>>>");
		return null;
	}
	
	@Override
	public boolean onUnbind(Intent intent) {
		Log.e(TAG, "onUnbind() >>>>>");
		return super.onUnbind(intent);
	}
	
	
	private void logger(String strLog){
		if(Constants.DEBUG)
			Log.d(TAG, strLog);
	}
	
	private void logger(String tag, String strLog){
		if(Constants.DEBUG)
			Log.d(tag, strLog);
	}
}